package com.xin.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * created by l1 on 2017/12/20.
 */
@Configuration
public class MyWebConfig extends WebMvcConfigurerAdapter{

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("/admin/roleList").setViewName("/roleList");
//        registry.addViewController("/admin/loadOrgs").setViewName("/addRole");
        registry.addViewController("/roleConfigure").setViewName("/roleConfigure");
        registry.addViewController("/teacherList").setViewName("/teacherList");
        super.addViewControllers(registry);
    }
}
